package com.xywy.tangandroid.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;
import android.widget.Toast;

import com.xywy.tangandroid.R;
import com.xywy.tangandroid.base.BaseActivity;

public class ClearCacheAct extends BaseActivity {

	private TextView clear_cache_text;
	private RelativeLayout left_img;
	private TextView middle_title;

	@Override
	protected void initView(Bundle savedInstanceState) {
		setContentView(R.layout.act_clear_cache);

		left_img = (RelativeLayout) findViewById(R.id.left_img);
		middle_title = (TextView) findViewById(R.id.middle_title);
		middle_title.setText(getResources().getString(
				R.string.mine_setting_clear_cache_str));
		clear_cache_text = (TextView) findViewById(R.id.clear_cache_text);
	}

	@Override
	protected void initListener() {
		left_img.setOnClickListener(this);
		clear_cache_text.setOnClickListener(this);
	}

	@Override
	protected void initData() {

	}

	@Override
	public void onClick(View view) {
		// TODO Auto-generated method stub
		super.onClick(view);
		switch (view.getId()) {
		case R.id.clear_cache_text:
			Toast.makeText(context, "缓存已清理", Toast.LENGTH_LONG).show();

			break;

		default:
			break;
		}
	}

}
